#!/bin/sh

set -e

. ./conf.sh
. ./util.sh

################################################################################
gnu_target=x86_64-nyan-linux-gnu
cross_dir_root=/home/nyan-build/cross/$gnu_target
sysroot=$cross_dir_root/sysroot

umask 022
mkdir -p "$cross_dir_root"
mkdir -p "$sysroot"

#since the target is x86_64, with the multilib mess, ensure /lib|/lib64
#consistency
mkdir -p "$sysroot/lib64"
ln -fs lib64 "$sysroot/lib"
################################################################################

#===============================================================================
. "$builders_dir_root/cross-gmp/builder.sh"
. "$builders_dir_root/cross-mpfr/builder.sh"
. "$builders_dir_root/cross-mpc/builder.sh"
#-------------------------------------------------------------------------------
#actually those are useless for gcc 4.7.x
. "$builders_dir_root/cross-isl/builder.sh"
. "$builders_dir_root/cross-osl/builder.sh"
#we did generate ourself the 0.18.3 package, waiting for official release
. "$builders_dir_root/cross-cloog/builder.sh"
#-------------------------------------------------------------------------------
. "$builders_dir_root/cross-binutils/builder.sh"
. "$builders_dir_root/cross-gcc/builder.sh"
#===============================================================================
